#define _CRT_SECURE_NO_WARNINGS 1
#include"slist.h"

void test() {
	SLTNode* node1 = (SLTNode*)malloc(sizeof(SLTNode));
	SLTNode* node2 = (SLTNode*)malloc(sizeof(SLTNode));
	SLTNode* node3 = (SLTNode*)malloc(sizeof(SLTNode));
	SLTNode* node4 = (SLTNode*)malloc(sizeof(SLTNode));
	node1->date = 1;
	node2->date = 2;
	node3->date = 3;
	node4->date = 4;
	node1->next = node2;
	node2->next = node3;
	node3->next = node4;
	node4->next = NULL;
	SLTNode* plist = node1;
	SLTPushBack(&plist, 5);
	SLTPushFront(&plist, 0);
	SLTFind(&plist, 3);
	SLTFind(&plist, 10);
	SLTInsert(&plist, plist, 222);
	SLTPrint(plist);
	SLTInsertBack(node4, 1111);
	SLTPrint(plist);
	SLTPrint(plist);
}
int main() {
	test();
	return 0;
}